<?php

/**
 * teacherownerview actions.
 *
 * @package    elearning
 * @subpackage teacherownerview
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 12479 2008-10-31 10:54:40Z fabien $
 */
class teacherownerviewActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
    //$this->forward('default', 'module');
	$lang_current = sfContext::getInstance()->getUser()->getCulture();
	$actionPage = $this->getRequestParameter('page', 1);
	$teacherId = 1; //test
	$this->pager =  TeachingPeer::getClassWithTeacher( $teacherId , $lang_current, $actionPage, 10 );
	$this->rows = $this->pager->getResults();
	
	//test
	$this->listId = TeachingPeer::getClassIdListByTeacher($teacherId);
	//$this->coursename = LevelPeer::getCourseNamebyCourseId($request->getParameter('courseid',0), $lang_current);
  }
}
